package com.jadows.tdog.domain;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.Set;

@Document(collection = "chat_rooms")
@Data
@Accessors(chain = true)
public class ChatRoom {

    @Id
    private Long roomId;
    /**
     * 群组名称
     */
    private String roomName;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建者
     */
    private String creatorId;
    /**
     * 群成员
     */
    private Set<String> memberIds;

}
